package com.example.zyedu.activity.register;

import android.util.Log;

import com.example.zyedu.entity.Reg_user;
import com.example.zyedu.tools.JumpUtil;

/**
 * Created by 半生瓜 on 2017/8/7.
 */

public class RegisterPresenter extends RegisterConteact.Presenter {
    @Override
    protected void doreg(String account, String name, String password) {
        rxManager.add(modle.getregisterModel(new Reg_user(account,name, password))
        .subscribe(responseBody -> {
            if(responseBody.getStatus().equals("0")){
               view.success();
            }else{
                view.result(responseBody.getDes());
            }
        },throwable -> {
            Log.i("test2", throwable.toString());

        }));
    }
}
